Web service discovery via data abstraction model and condition creation

ABSTRACT

A method includes receiving a selection of a logical field of a data abstraction model. The method includes determining model entries (e.g., concepts) associated with the selected logical field and examining the data abstraction model to determine other model entries that are equal to the model entries associated with the selected logical field. For each equal model entry, the method includes determining web services to be used in performing a search, where the web services are determined by querying a discovery registry associated with the data abstraction model to discover one or more web services that are resolvable based on the selected logical field. A first discovered web service is executed with user supplied criteria provided via a user interface to obtain a list of values. A condition is created that limits acceptable values associated with the selected logical field based on the user supplied criteria.

I. CLAIM OF PRIORITY

This application is a continuation patent application of, and claims priority from, U.S. patent application Ser. No. 12/771,760, filed on Apr. 30, 2010 and entitled “Web Service Discovery Via Data Abstraction Model and Condition Creation” which is incorporated by reference herein in its entirety for all purposes.

II. FIELD OF THE DISCLOSURE

The present disclosure relates generally to computer implemented data processing, and more particularly, to accessing computer data and resources.

III. BACKGROUND

Advances in computing enable tremendous access to desired information and resources. Databases provide computerized information storage and retrieval for this purpose. In a computer database management system (DBMS), a requesting entity (e.g., an application, an operating system, or a user) requests access to a specified database by issuing a database access request. Such requests may include, for instance, simple catalog lookup requests or transactions that operate to read, change, or add specified records in the database. These requests are made using high-level query languages. The term query denominates a set of commands for retrieving data from a stored database. Queries take the form of a command language that lets programmers and programs select data, insert data, update data, locate data, and so forth.

A data abstraction model is a programmatic framework, developed to provide a requesting entity (e.g., an end-user or application) with an abstract representation of physical data. An abstract data model logically describes an underlying physical data structure. In this way, the requesting entity is decoupled from the detailed structure of the underlying physical data to be accessed. Logical queries based on the framework can be constructed without regard for the makeup of the physical data. Further, changes to the physical data do not necessitate changes to applications that access the physical data.

Using a data abstraction model, abstract queries based on the framework can be constructed without regard for the makeup of the underlying physical data. For instance, assume a user in a hospital wants to determine last and first names of employees having worked over ten years. To this end, the user may specify the following abstract query: “FIND LAST NAME, FIRST NAME” and “WHERE YRS EMPLOY-RESULT>10”. The logical field names “LAST NAME”, “FIRST NAME” and “YRS EMPLOY-RESULT” specified in the abstract query correspond to logical field names of respective logical fields in the data abstraction model.

Some research tools take querying a database a step further. For example, IBM's Data Discovery and Query Builder (DDQB) allows researchers and medical providers to analyze and identify correlations between and within data sets instead of having to manually search through records or requiring the intervention of a database administrator.

While a database can be a very effective research tool, only the information contained in the database is able to be queried. For this and other reasons, service-oriented architectures (SOAs) were created. An SOA describes IT infrastructure that allows different applications or services to exchange data with one another as they participate in business processes. The process of communication involves either simple data passing or two or more services coordinating some activity. Services are intrinsically unassociated units of functionality, which have no calls to each other embedded in them. Example services may include filling out an online application for an account, viewing an online bank statement, or placing an online booking or airline ticket order. Instead of services embedding calls to each other in their source code, protocols are defined that describe how one or more services communicate with each other. SOAs also link databases, broadening the scope of available information to be researched.

The increased access and capability provided by SOA processes also increases the need to focus requests for information and other services. Unfocused searches of the relatively larger pool of services and data can result in irrelevant results, as well as an overwhelming amount of information.

IV. SUMMARY

In a particular embodiment, a computer-implemented method includes receiving a selection of a logical field to build a condition on. The selected logical field is associated with a data abstraction model of a database. The data abstraction model includes a plurality of logical fields, and each logical field of the plurality of logical fields corresponds to a particular data structure of the database. The method includes determining a first set of model entries (e.g., concepts) associated with the selected logical field and examining the data abstraction model to identify a second set of model entries that are equal to the first set of model entries associated with the selected logical field. The method includes determining, for each model entry of the second set of model entries, one or more web services to be used in performing a search. The one or more web services are determined by querying a discovery registry associated with the data abstraction model of the database to discover one or more web services that are resolvable based on the selected logical field. A web service input of a particular discovered web service is associated with a first logical field of the data abstraction model via the discovery registry, and a web service output of the particular discovered web service is associated with a second logical field of the data abstraction model via the discovery registry. The method includes displaying a user interface that identifies the one or more discovered web services and that is adapted to receive user supplied criteria with respect to each web service. A first discovered web service may be executed with first user supplied criteria to obtain a first list of values. A condition may be created that limits acceptable values associated with the selected logical field based on the first user supplied criteria, where the condition is applicable to the first list of values.

In another particular embodiment, a system includes a processor and a computer readable storage medium that stores instructions that are executable by the processor. The instructions cause the processor to receive a selection of a logical field to build a condition on. The selected logical field is associated with a data abstraction model of a database. The data abstraction model includes a plurality of logical fields, and each logical field of the plurality of logical fields corresponds to a particular data structure of the database. The instructions cause the processor to identify a first set of model entries (e.g., a first set of concepts) associated with the selected logical field and to examine the data abstraction model to identify a second set of model entries (e.g., a second set of concepts) that are equal to the first set of model entries associated with the selected logical field. For each model entry of the second set of model entries, the instructions cause the processor to determine one or more web services to be used in performing a search. The one or more web services are determined by querying a discovery registry associated with the data abstraction model of the database to discover one or more web services that are resolvable based on the selected logical field. A web service input of a particular discovered web service is associated with a first logical field of the data abstraction model via the discovery registry, and a web service output of the particular discovered web service is associated with a second logical field of the data abstraction model via the discovery registry. A user interface is displayed that identifies the one or more discovered web services and that is adapted to receive user supplied criteria with respect to each web service. A first discovered web service may be executed with first user supplied criteria to obtain a first list of values. A condition may be created that limits acceptable values associated with the selected logical field based on the first user supplied criteria, where the condition is applicable to the first list of values.

In another particular embodiment, a computer readable storage medium includes instructions that are executable by a processor. The instructions, when executed by the processor, cause the processor to receive a selection of a logical field to build a condition on. The selected logical field is associated with a data abstraction model of a database. The data abstraction model includes a plurality of logical fields, and each logical field of the plurality of logical fields corresponds to a particular data structure of the database. The instructions cause the processor to retrieve a set of model entries of the data abstraction model based on the selected logical field. For each model entry of the set of model entries, the instructions cause the processor to determine one or more web services to be used in performing a search. The one or more web services are determined by querying a discovery registry associated with the data abstraction model of the database to discover one or more web services that are resolvable based on the selected logical field. A web service input of a particular discovered web service is associated with a first logical field of the data abstraction model via the discovery registry, and a web service output of the particular discovered web service is associated with a second logical field of the data abstraction model via the discovery registry. A user interface is displayed that identifies the one or more discovered web services and that is adapted to receive user supplied criteria with respect to each web service. A first discovered web service may be executed with first user supplied criteria to obtain a first list of values. A condition may be created that limits acceptable values associated with the selected logical field based on the first user supplied criteria, where the condition is applicable to the first list of values.

These and other advantages and features that characterize embodiments of the disclosure are set forth in the claims annexed hereto and forming a further part hereof. However, for a better understanding of the disclosure, and of the advantages and objectives attained through its use, reference should be made to the drawings and to the accompanying descriptive matter in which there are described exemplary embodiments of the disclosure.

V. BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an illustrative embodiment of a system to modify a database query interface to identify one or more web services that are resolved based on a logical field of a data abstraction model;

FIG. 2 is an illustrative embodiment of a modified database query interface that identifies web services that are resolved based on a logical field of a data abstraction model;

FIG. 3 is an illustrative embodiment of a web service query result interface displayed in response to selection of a web service of a modified database query interface;

FIG. 4 is a flow diagram of a particular embodiment of a method of web service discovery via a data abstraction model augmented by field relationship identification;

FIG. 5 is a block diagram of a particular embodiment of a system to modify a database query interface to identify one or more web services that are resolved based on a logical field of a data abstraction model;

FIG. 6 is a flow diagram of a particular embodiment of a method of modifying a database query interface to identify one or more web services that are resolved based on a logical field of a data abstraction model; and

FIG. 7 is a flow diagram of a particular embodiment of a method of mapping one or more web services included in a web registry to a discovery registry associated with a data abstraction model of a database.

VI. DETAILED DESCRIPTION

A particular embodiment of the present disclosure relates to a structured query language (SQL) condition function resolver that may be used instead of a set of static DDQB plug-ins. The SQL condition function resolver may obtain information about a field currently being used and look up SOA components (e.g., web services) that are applicable to the field.

Typically, when a web service is created, the web service is placed into a registry so that the web service may be discovered and used. In a particular embodiment of the present disclosure, when the web service is registered in a web registry, the web service is also registered with a DDQB discovery registry where DDQB semantic types may be captured.

To illustrate, multiple web services may be designed to enable a user to look up employees using different types of available information. For example, a first web service may include a department lookup service that relies on a department identification input, a second web service may include a support lookup service that relies on a support e-mail input, and a third web service may include a product owner lookup service that relies on a product name input. Each of the web services may be “tagged” with a concept of the web service as it relates to a data abstraction model of a particular organization.

For example, a web service input associated with the department lookup service may include a department identification input (e.g., “Dept ID”). This input may be “mapped” to an appropriate DDQB field reference (e.g., “<data://Employee/Department Code>(1)”). A web service output associated with the department lookup service may include a list of employee identifiers (e.g., “List of Employee IDs”). This output may be “mapped” to an appropriate DDQB field reference (e.g., “<data://Employee/Employee ID>(0-N)”).

As another example, a web service input associated with the support lookup service may include a support e-mail input (e.g., “Support e-mail”). This input may be “mapped” to an appropriate DDQB field reference (e.g., “<data://Employee/EmailAddress>(1)”). A web service output associated with the support lookup service may include a list of employee identifiers (e.g., “List of Employee IDs”). This output may be “mapped” to an appropriate DDQB field reference (e.g., “<data://Employee/Employee ID>(0-N)”).

As a further example, a web service input associated with the product owner lookup service may include a product name input (e.g., “Product Name”). This input may be “mapped” to an appropriate DDQB field reference (e.g., <data://Employee/Product Name>(1)”). A web service output associated with the product owner lookup service may include a list of employee identifiers (e.g., “List of Employee IDs”). This output may be “mapped” to an appropriate DDQB field reference (e.g., “<data://Employee/Employee ID>(0-N)”).

Thus, each of the illustrative web services have been “tagged” with its associated concept as related to the data abstraction model of the organization. As such, when DDQB uses a field, the field is used to determine web services that can be resolved based on a particular input. This discovery process may provide the ability to continuously grow the functionality of the DDQB product without modifying the product itself. As new services come online within the organization, the services may be made available.

Further, many service oriented architecture environments contain a rich set of diverse services for a multitude of purposes. It may be possible to leverage relationships between different types of data in order to obtain the type of information applicable to the condition. For example, information retrieved by a discovered web service may be augmented by field “HAS A” relationships that are identified via the data abstraction model.

The flowcharts and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Referring to FIG. 1, a particular embodiment of a system to modify a database query interface to include one or more web services that are resolved based on a logical field of a data abstraction model is illustrated and generally designated 100. Web services that are registered in a web registry may also be registered with a discovery registry, where input and output parameters of the web services may be mapped to logical fields of a data abstraction model of a database. The system 100 of FIG. 1 may provide additional functionality to a database query application by making certain web services (e.g., web services that are mapped to logical fields of the data abstraction model of the database) available when designing database queries.

The system 100 of FIG. 1 includes a database (DB) query interface 102, a data abstraction model 126 of a database 140, and a discovery registry 112 associated with the data abstraction model 126. The system 100 may generate a modified database query interface 144. In a particular embodiment, one or more of the database query interface 102 and the modified database query interface 144 may be graphical user interfaces (i.e., GUIs).

The database query interface 102 is adapted to receive a selection of a particular logical field 104. For example, a user may select the particular logical field 104 from a plurality of logical fields via a field selection element 106. To illustrate, the user may select an icon 108 to display the plurality of logical fields in a list format, and the user may select one of the logical fields by highlighting or otherwise selecting the logical field. In response to selection of a selected logical field 110, the discovery registry 112 associated with the data abstraction model 126 may be queried to discover one or more web services that are resolvable based on the selected logical field 110.

The data abstraction model 126 includes a plurality of logical fields, and each logical field corresponds to a particular data structure of the database 140. For example, in the embodiment illustrated in FIG. 1, the plurality of logical fields includes a first logical field 128, a second logical field 132, and a third logical field 136. The first logical field 128 corresponds to a first data structure 130 of the database 140 (e.g., a first schema or table), the second logical field 132 corresponds to a second data structure 134 of the database 140, and the third logical field 136 corresponds to a third data structure 138 of the database 140. A web service input of a particular web service is associated with a logical field of the data abstraction model 126 via the discovery registry 112, and a web service output of the particular web service is associated with a second logical field of the data abstraction model 126 via the discovery registry 112.

In the embodiment illustrated, a first web service 114 and a second web service 120 may be determined to be resolvable based on the selected logical field 110. Alternatively, any number of web services may be determined to be resolvable. A web service input 116 and a web service output 118 are associated with the first web service 114. Similarly, a web service input 122 and a web service output 124 are associated with the second web service 120. As illustrated in FIG. 1, the web service input 116 of the first web service 114 is associated with the first logical field 128 of the data abstraction model 126 via the discovery registry 112, and the web service output 118 of the first web service 114 is associated with the second logical field 132 of the data abstraction model 126 via the discovery registry 112. The web service input 122 of the second web service 120 is associated with the third logical field 136 of the data abstraction model 126 via the discovery registry 112, and the web service output 124 of the second web service 120 is associated with the second logical field 132 of the data abstraction model 126 via the discovery registry 112.

To illustrate, the first web service 114 may include a department lookup service. In this case, the web service input 116 associated with the department lookup service may include a department identification input (e.g., “Dept ID”) that is associated with an employee department code logical field (e.g., “<data://Employee/Department Code>(1)”) of the data abstraction model 126 via the discovery registry 112. The web service output 118 associated with the department lookup service may include a list of employee identifiers (e.g., “List of Employee IDs”) that are associated with an employee identification logical field (e.g., “<data://Employee/Employee ID>(0-N)”) of the data abstraction model 126 via the discovery registry 112. Thus, the department lookup service may enable a user to look up employees based on a first type of information (e.g., based on a department identifier).

As another example, the second web service 120 may include a support lookup service. In this case, the web service input 116 associated with the support lookup service may include a support e-mail input (e.g., “Support e-mail”) that is associated with an employee e-mail address logical field (e.g., “<data://Employee/EmailAddress>(1)”) data abstraction model 126 via the discovery registry 112. The web service output 118 associated with the support lookup service may include a list of employee identifiers (e.g., “List of Employee IDs”) that are associated with an employee identification logical field (e.g., “<data://Employee/Employee ID>(0-N)”) of the data abstraction model 126 via the discovery registry 112. Thus, the support lookup service may enable a user to look up employees based on a second type of information (e.g., based on an employee e-mail address).

In another embodiment, the discovery registry 112 includes a third web service (not shown). For example, the third web service may include a product owner lookup service. A web service input associated with the product owner lookup service may include a product name input (e.g., “Product Name”) that is associated with a product name logical field (e.g., a fourth logical field, not shown) of the data abstraction model 126 via the discovery registry 112. The web service output associated with the product owner lookup service may include a list of employee identifiers (e.g., “List of Employee IDs”) that are associated with an employee identification logical field (e.g., “<data://Employee/Employee ID>(0-N)”) of the data abstraction model 126 via the discovery registry 112 (e.g., the second logical field 132). Thus, the product owner lookup service may enable a user to look up employees based on a third type of information (e.g., based on a product name).

As shown in FIG. 1, the web service output 118 of the first web service 114 and the web service output 124 of the second web service 120 are both associated with the same logical field of the data abstraction model 126 (e.g., the second logical field 132). Thus, the discovery registry 112 may enable different web service outputs to be mapped to a common logical field. For example, the user may look up employees based on a first type of information (e.g., based on a department identifier), based on a second type of information (e.g., based on a support e-mail address), or based on a third type of information (e.g., a product name). In each case, a list of employee identifiers may be returned. In the event that the user knows the department identifier, the user may locate the employee using the department lookup service. In the event that the user knows a support e-mail address, the user may locate the employee using the support lookup service. In the event that the user knows a product name, the user may locate the employee using the product name lookup service. Each web service is tagged with the concept of looking up employees as it would relate to the data abstraction model 126 of the database 140.

The modified database query interface 144 is displayed based on one or more discovered web services 142. The modified database query interface 144 includes a text entry element 148 to receive a text search term 146 and at least one selectable input associated with a discovered web service. For example, in the embodiment illustrated in FIG. 1, the modified database query interface 144 includes a first selectable input 150 associated with the first discovered web service 114 and a second selectable input 152 associated with the second discovered web service 120. In alternative embodiments, the modified database query interface 144 may include any number of selectable inputs that are each associated with a particular discovered web service.

In response to selection of the first selectable input 150 associated with the first discovered web service 114, a first web service query result interface 154 is displayed. The first web service query result interface 154 includes first information 156 retrieved in response to execution of the first discovered web service 114 based on the text search term 146 received via the text entry element 148 of the modified database query interface 144. For example, the text search term 146 may include an employee department (e.g., “HJAA”), and the first selectable input 150 may include a department lookup web service (see FIG. 2). Upon entry of the text search term 146 of “HJAA” and in response to selection of the first selectable input 150, the first web service query result interface 154 with a list of employee identifiers associated with the “HJAA” employee department (e.g., the first retrieved information 156) may be displayed (see FIG. 3).

In response to selection of the second selectable input 152 associated with the second discovered web service 120, a second web service query result interface 158 is displayed. The second web service query result interface 158 includes second information 160 retrieved in response to execution of the second discovered web service 120 based on the text search term 146 received via the text entry element 148 of the modified database query interface 144. For example, the text search term 146 may include a support e-mail address, and the second web service query result interface 158 with a list of employee identifiers associated with the support e-mail address (e.g., the second retrieved information 160) may be displayed. In a particular embodiment, field relationship metadata 162 may be available via the data abstraction model 126.

The modified database query interface 144 may include any number of selectable inputs associated with the discovered web services 142 that are resolvable based on the selected logical field 110. For example, the modified database query interface 144 may further include a third selectable input (not shown) associated with a third discovered web service that is resolvable based on the selected logical field 110. In response to selection of a third selectable input (not shown) associated with the third discovered web service, a third web service query result interface (not shown) may be displayed. The third web service query result interface may include third information retrieved in response to execution of the third discovered web service based on the text search term 146 received via the text entry element 148 of the modified database query interface 144. For example, the text search term 146 may include a product name, and the third web service query result interface with a list of employee identifiers associated with the product name may be displayed.

The features of the present disclosure may have particular application within such environments as a DDQB web-based framework. As an example, the web-based framework may help physicians or researchers (among others) to search through data files to identify and correlate data based on demographics, laboratory tests and diagnostics, as well as laboratory and physician notes. This search capability tool may enable users with various levels of expertise to easily configure queries and leverage the full spectrum of information assets. DDQB applications may enable users to build queries ranging from simple to complex, and run the queries against a user's data environment.

Embodiments consistent with the present disclosure may allow queries to be edited and saved for later use. Results from queries may be displayed in HTML, CSV, XML, TAB Delimited, or XLS formats. Further, users may be able to save query results for future use or collaboration with others. Query results may also be passed to configurable and/or pluggable analysis routines. Such features may be realized without requiring the user to have knowledge of complex data query languages.

Referring to FIG. 2, a particular embodiment of a modified database query interface (e.g., a modified database query GUI) that includes web services that are resolved based on a logical field of a data abstraction model is illustrated and generally designated 144. The modified database query interface 144 of FIG. 2 corresponds to the modified database query interface 144 of FIG. 1. The modified database query interface 144 may represent an improved database query interface that may enable a user to execute a discovered web service associated with a logical field of a data abstraction model of a database.

The modified database query interface 144 is associated with a particular logical field 202 of a data abstraction model of a database. For example, the particular logical field 202 of FIG. 2 may be the selected logical field 110 of the data abstraction model 126 of the database 140 of FIG. 1. In the embodiment illustrated in FIG. 2, the particular logical field 202 includes an “Employee” field. A text search term 204 may be provided via the modified database query interface 144.

In the embodiment illustrated in FIG. 2, the modified database query interface 144 includes a first selectable input 206 associated with a first discovered web service, a second selectable input 208 associated with a second discovered web service, and a third selectable input 210 associated with a third discovered web service. For example, the first selectable input 206 may correspond to a department lookup service, the second selectable input 208 may correspond to a support lookup service, and the third selectable input 210 may correspond to a product owner lookup service.

In the event that a user knows a department identifier, the text search term 204 provided by the user may be the department identifier, and the user may select the first selectable input 206 that corresponds to the department lookup service. In the event that the user knows a support e-mail address, the text search term 204 provided by the user may be the support e-mail address, and the user may select the second selectable input 208 that corresponds to the support lookup service. In the event that the user knows a product name, the text search term 204 provided by the user may be the product name, and the user may select the third selectable input 210 that corresponds to the product owner lookup service.

In the embodiment illustrated, the text search term 204 is “HJAA,” corresponding to a department identifier. As such, the user may select the first selectable input 206 that corresponds to the department lookup service in order to locate an employee. In response to selection of the first selectable input 206, the department lookup service is executed with a web service input of “HJAA.” Information retrieved by the department lookup service may correspond to a list of employees associated with the “HJAA” department. In a particular embodiment, a web service query result interface may be displayed that includes the list of employees (see FIG. 3). For example, the web service query result interface may correspond to the first web service query result interface 154 of FIG. 1, and the list of employees may correspond to the first retrieved information 156.

As another example, the text search term 204 may correspond to a support e-mail address, and the user may select the second selectable input 208 that corresponds to the support lookup service in order to locate an employee. In response to selection of the second selectable input 208, the support lookup service is executed with a web service input of the support e-mail address. As a further example, the text search term 204 may correspond to a product name, and the user may select the third selectable input 210 that corresponds to the support lookup service in order to locate an employee. In response to selection of the third selectable input 210, the product owner lookup service is executed with a web service input of the product name.

In one embodiment, maintenance functionality may allow a user to remove a selectable input from the modified database query interface 144. For example, the first selectable input 206 may be removed in response to a user selection of a first removal option. To illustrate, the user may right-click on the first selectable input 206 and select a “Do not show this feature” option from a context menu (not shown). In one embodiment, the first selectable input 206 is removed from the modified database query interface 144 for the user. As another example, the second selectable input 208 may be removed in response to selection of a second removal option. For example, an administrator may right-click on the second selectable input 208 and select a “Do not show this feature” option from a context menu. In one embodiment, the second selectable input 208 is removed from the modified database query interface 144 for all users in response to the administrator selection.

Referring to FIG. 3, a particular embodiment of a web service query result interface (e.g., a web service query result GUI) displayed in response to selection of a web service of a modified database query interface is illustrated and generally designated 154. The web service query result interface 154 of FIG. 3 is displayed in response to a selection of the first selectable input 150 associated with a department lookup service of the modified database query interface 144 of FIG. 2.

The web service query result interface 154 is displayed in response to execution of a discovered web service based on a text search term received via a text entry element of a modified database query interface. The web service query result interface 154 includes information 304 retrieved by a particular web service 302. In the embodiment illustrated, the particular web service 302 includes a department lookup web service, and the information 304 retrieved by the department lookup web service includes a list of employees associated with a text search term 204. For example, the text search term 204 may be the “HJAA” employee department of FIG. 2. In the embodiment illustrated, the list of employees associated with the “HJAA” employee department includes a first employee name 306 (e.g., “Carter”), a second employee name 308 (e.g., “Clark”), a third employee name 310 (e.g., “Garcia”), a fourth employee name 312 (e.g., “Harris”), and a fifth employee name 314 (e.g., “Larson”). The user may select individual employee names (e.g., using a check box associated with the name) or may select all of the employee names using a select all option 316.

Thus, the user may refine a database query by selecting particular employees using a particular discovered web service that returns a list of employees associated with a particular web service input (e.g., the employee department of “HJAA” in the example of FIG. 3). As such, the functionality of a database query tool may be improved by integrating applicable web services. As more web services become available, the database query tool (e.g., DDQB query builder) may be further improved without customized code development (e.g., custom plug-ins) or other modifications to the underlying database query tool.

FIG. 4 illustrates an embodiment of a method of service oriented architecture discovery augmented by field “HAS A” relationship identification in a semantic abstraction layer, at 400. Many service oriented architecture environments contain a rich set of diverse services for a multitude of purposes. It may be possible to leverage relationships between different types of data in order to obtain the type of information applicable to the condition. In a particular embodiment, web services augmented with DDQB field information may then be augmented with “HAS A” relationship information for different types of fields.

As an example, one web service may be a “Return current doctors on site” service. No web service input may be associated with this web service. As such, there may be no mapping of a web service input to a DDQB field reference. A web service output associated with this service may include a list of doctor identifiers (e.g., “List of Doctor IDs”). This output may be “mapped” to an appropriate DDQB field reference (e.g., “<data://Employee/Doctor ID>(0-N)”). The “Return current doctors on site” web service may represent a typical example of a healthcare web service. In one embodiment, the service may examine real-time data associated with a healthcare facility. For example, the service may determine doctors that have “badged in” to the facility or persons that that have “scheduled into surgery,” among other alternatives.

Field relationship metadata may be used to augment data from such a service. In one embodiment, the field relationship metadata includes the field relationship metadata 162 of FIG. 1. For example, one additional rule that may be defined based on field relationship metadata would be “<data://Labs/Hemoglobin Test>HAS A <data://Labs/Hemoglobin@Date>.” Another example rule may be “<data://Labs/Hemoglobin Test>HAS A <data://Labs/Hemoglobin@Doctor>.” Other example rules may be “<data://Labs/Hemoglobin@Doctor>EQUALS <data://Employee/Doctor ID>” and “<data://Labs/Hemoglobin Test>HAS A <data://Labs/Hemoglobin@Status>.” This example illustrates that a Hemoglobin test includes other defining information, such as a date of the test, a doctor that ordered the test, and a status of the test (e.g., abnormal versus normal), among other information.

When a user seeks to build a condition on a particular DDQB field such as “Hemoglobin,” a set of available web services may be examined, and anything with a “HAS A” relationship to a field may be used for condition augmentation. It should be noted that condition augmentation is different from term expansion in that condition augmentation involves building criteria into a database query itself. FIG. 4 illustrates an example of such condition augmentation.

Referring to FIG. 4, the method 400 includes a user selecting a field to build a condition on, at 402. For example, the user may select a “Hemoglobin test” field to build a condition on. The method 400 includes determining one or more concepts associated with the field that the user may be able to build additional criteria against, at 404. For example, in the case of the “Hemoglobin test” field, the “Date” concept and the “Doctor” concept may be determined. The method 400 includes examining a data abstraction model to determine any equal concepts, at 406. For example, in this case, the Employee/Doctor ID concept is located. The method 400 includes determining, for each of the concepts, one or more services that could be used in performing a more accurate search, at 408. For example, in this case, a better “Hemoglobin” search may be performed using the “Return current doctors on site” service.

The method 400 includes providing the one or more discovered services to the user via a user interface, at 410. For example, in this case, the user interface may allow the user to optionally use the “Return current doctors on site” service in a query. The user interface may provide the discovered services to the user dynamically (i.e., while the user is building an initial “Hemoglobin” condition, the “Return current doctors on site” service is discovered and presented). The method 400 includes executing the one or more services with user supplied criteria, at 412. To illustrate, when the user interface is presented, the user may enter “<85” for hemoglobin test criteria. The user may then select to run the “Return current doctors on site” service with the “<85” criteria for hemoglobin test results. The type of data returned by the “Return current doctors on site” service is of type “<data://Employee/Doctor ID>,” that is the same type (i.e., “EQUALS”) as the attribute information under “Hemoglobin test” (i.e., <data://Labs/Hemoglobin@Doctor)>). For example, the doctor identifiers returned by the “Return current doctors on site” service may indicate that doctors with doctor identifiers 1001, 1203, and 8302 are currently working. The method 400 includes creating a condition based on the user supplied criteria and based on returned service data, at 414. The DDQB tool may use the user input data (i.e., “<85” in this case) and the returned service data (i.e., 1001, 1203, and 8302) to create a condition to query for the user. To illustrate, the condition may be “Select Hemoglobin, Hemoglobin@Doctor ID where Hemoglobin <85 AND Hemoglobin@Doctor is 1002, 1203, 8302.”

Referring to FIG. 5, a particular embodiment of a system to modify a database query interface to include one or more web services that are resolved based on a logical field of a data abstraction model is illustrated and generally designated 500.

The system 500 includes a processor 502, a memory 504 (e.g., a computer readable storage medium), and an interface 506. The interface 506 is configured to receive user input 530 (e.g., a selection of a particular logical field) via a database query interface 102. The interface 506 is further configured to communicate via a network 508 and with a mass storage device 510 that includes a database 140.

The memory 504 is configured to store a data abstraction model 126 of the database 140. The data abstraction model 126 may map semantic names to data in the database 140. The data abstraction model 126 includes a plurality of logical fields, where each logical field of the plurality of logical fields corresponds to a particular data structure of the database 140. In the embodiment illustrated, the database 140 is stored outside of the memory 504. Alternatively, the memory 504 may be configured to store the database 140. The database 140 is representative of any collection of data regardless of the particular physical representation of the data. A physical representation of data defines an organizational schema of the data. By way of illustration, the database 140 may be organized according to a relational schema (accessible by SQL queries) or according to an XML schema (accessible by XML queries). However, the present disclosure is not limited to a particular schema and contemplates extension to schemas presently unknown. As used herein, the term “schema” generically refers to a particular arrangement of data.

The data abstraction model 126 is referred to herein as a logical representation because the data abstraction model 126 defines logical fields corresponding to data structures in the database 140, thereby providing an abstract (i.e., logical) view of the data in the database 140. A data structure is a physical arrangement of the data, such as an arrangement in the form of a database table or a column of the database table. More specifically, each logical field defines a logical representation of a specific set of the data in the database 140. In a relational database environment having a multiplicity of a database tables, a specific logical representation having specific logical fields can be provided for each database table. In this case, all specific logical representations together constitute the data abstraction model 126. Physical entities of data are arranged in the database 140 according to a physical representation of the data. A physical entity of data (interchangeably referred to as a physical data entity) is a data item in an underlying physical representation. Accordingly, a physical data entity is the data included in a database table or in a column of the database table.

The memory 504 is configured to store a discovery registry 112 associated with the data abstraction model 126 of the database 140. The discovery registry 112 associates a plurality of web services 514 with a plurality of logical fields of the data abstraction model 126. The discovery registry 112 may comprise a service container that provides remote access to services.

The memory 504 is further configured to store a resolver 516 that is executable by the processor 502 to query the discovery registry 112 to discover one or more web services 514 of the plurality of web services that are resolvable based on the particular logical field received via the database query interface 102. In one embodiment, the resolver 516 is a structured query language (SQL) condition function resolver. The SQL condition function resolver may be responsible for locating service outputs associated with and otherwise appropriate for a desired condition. The SQL condition function resolver may use SQL techniques to dynamically grow services, as opposed to static plug-ins. SQL is a database computer language designed for the retrieval and management of data in relational database management systems, database schema creation and modification, and database object access control management.

The memory 504 is further configured to store a user interface component executable by the processor 502 to display a modified database query interface 144 that includes a text entry element to receive a text search term and a first selectable input associated with the first discovered web service.

In the embodiment illustrated, the memory 504 stores a web registry 520. The web registry 520 includes discoverable information associated with the plurality of web services 514. An exemplary web registry 520 may include a Universal Description, Discovery and Integration (UDDI) registry. UDDI is a platform independent, XML-based registry for businesses to list themselves on the Internet.

A user may modify the discovery registry 112 via an application 528 that may be used to map a web service registered in the web registry 520 to the discovery registry 112 (see FIG. 7). In one embodiment, the discoverable information associated with a particular web service of the plurality of web services 514 may be stored at the discovery registry 112 when the particular web service is added to the web registry 520.

The database query interface 102 of FIG. 5 may be the database query interface 102 of FIG. 1, the discovery registry 112 may be the discovery registry 112 of FIG. 1, the data abstraction model 126 may be the data abstraction model 126 associated with the database 140 of FIG. 1, and the modified database query interface 144 may be the modified database query interface 144 of FIG. 1. The first web service query result interface 154 of FIG. 5 may be the first web service query result interface 154 of FIG. 1 that is generated in response to a selection of the first selectable input 150. The second web service query result interface 158 of FIG. 5 may be the second web service query result interface 158 of FIG. 1 that is generated in response to a selection of the second selectable input 152.

Referring to FIG. 6, a particular embodiment of a method of modifying a database query interface to include one or more web services that are resolved based on a logical field of a data abstraction model is illustrated and generally designated 600. In one embodiment, the method 600 may include modifying the database query interface 102 of FIG. 1 to generate the modified database query interface 144 of FIG. 1 that includes selectable inputs 150, 152 associated with discovered web services.

The method 600 includes receiving a selection of a particular logical field via a database query interface, at 604. For example, the method 600 may include receiving the selected logical field 110 of FIG. 1 via the database query interface 102 of FIG. 1.

The method 600 includes querying a discovery registry associated with a data abstraction model of a database to discover one or more web services that are resolvable based on the particular logical field, at 602. For example, the method 600 may include querying the discovery registry 112 of FIG. 1 associated with the data abstraction model 126 to discover the web services 142 that are resolvable based on the selected logical field 110. The data abstraction model includes a plurality of logical fields, where each logical field of the plurality of logical fields corresponds to a particular data structure of the database. For example, in FIG. 1, the first logical field 128 corresponds to the first data structure 130 of the database 140, the second logical field 132 corresponds to the second data structure 134 of the database 140, and the third logical field 136 corresponds to the third data structure 138 of the database 140. A web service input of a first discovered web service is associated with a first logical field of the data abstraction model via the discovery registry, and a web service output of the first discovered web service is associated with a second logical field of the data abstraction model via the discovery registry. For example, in FIG. 1, a web service input 116 of the first web service 114 is associated with the first logical field 128, and the web service output 118 of the first web service 114 is associated with the second logical field 132.

The method 600 further includes displaying a modified database query interface that includes a text entry element to receive a text search term and a first selectable input associated with the first discovered web service, at 606. For example, in FIG. 1, the modified database query GUI 144 includes the text entry element 148 to receive a text search term 146 and the first selectable input 150 associated with the first discovered web service 114.

In the embodiment illustrated in FIG. 6, the method 600 includes displaying a first web service query result interface in response to selection of the first selectable input associated with the first discovered web service, at 608. The first web service query result interface includes information retrieved in response to execution of the first discovered web service based on the text search term received via the text entry element of the modified database query interface. For example, in FIG. 1, the first web service query result interface 154 is displayed in response to selection of the first selectable element 150 associated with the first discovered web service 114. In FIG. 1, the first web service query result interface 154 includes first retrieved information 156 that is retrieved in response to execution of the first discovered web service 114 based on the text search term 146 received via the text entry element 148 of the modified database query interface 144.

Referring to FIG. 7, a particular embodiment of a method of mapping one or more web services included in a web registry to a discovery registry associated with a data abstraction model of a database is illustrated and generally designated 700. For example, the method 700 may include mapping one or more web services included in the web registry 520 of FIG. 5 to the discovery registry 112 associated with the data abstraction model 126 of the database 140.

The method 700 includes querying a web registry to determine one or more web services registered at the web registry, at 702. For example, the web registry 520 of FIG. 5 may be queried to determine one or more web services registered at the web registry 520. The method 700 includes displaying the one or more web services and a data abstraction model of a database, at 704. The data abstraction model includes a plurality of logical fields that each correspond to a particular data structure of the database. For example, the data abstraction model may be the data abstraction model 126 of FIG. 5, and a GUI may display the one or more web services of the web registry 520 side by side with a tree representation of the data abstraction model 126. In the event that a user selects to map one of the web services, the method 700 includes receiving a user selection of either an input parameter of a particular web service or an output parameter of the particular web service, at 706. For example, the user may select the web service input 116 of the first web service 114 or the web service output 118 of the first web service 114 of FIG. 1.

The method 700 includes receiving a user selection of a field in the data abstraction model to associate with the selected parameter of the particular web service, at 708. For example, the GUI may enable the user to associate a web service parameter with a logical field of the data abstraction model. For example, in FIG. 1, the user may map the web service input 116 to the first logical field 128 and may map the web service output 118 to the second logical field 132 of the data abstraction model 126. The mapping information between web service parameters and logical fields of the data abstraction model may be stored at a discovery registry (e.g., the discovery registry 112 of FIG. 1).

The method 700 may be repeated for multiple web services included in the web registry. The method 700 may include determining whether the user desires to map another web service, at 710. If so, the method 700 may return to 706 in order to allow the user to map web service parameters of a second web service to logical fields of the data abstraction model. For example, in FIG. 1, the user may map the web service input 122 of the second web service 120 to the third logical field 136 and may map the web service output 124 to the second logical field 132 of the data abstraction model 126. The method 700 may allow the user to map any number of web services to logical fields of the data abstraction model and to store the mapping information at a discovery registry (e.g., the discovery registry 112 of FIG. 1).

Upon completion of the mapping operations, the method 700 may include determining whether the user desires to enable or disable the mapped web service, at 712. The method 700 may include enabling a selected web service, at 714. By enabling the selected web service, the selected web service is made available to a query builder application (e.g., DDQB query builder). For example, in the embodiment illustrated in FIG. 1, the first web service 114 is enabled, resulting in the first selectable input 150 associated with the first web service 114 being made available to the modified database query interface 144 (e.g., as a selectable button or icon). As another example, in the embodiment illustrated in FIG. 1, the second web service 120 is enabled, resulting in the second selectable input 152 associated with the second web service 120 being made available to the modified database query interface 144 (e.g., as a different selectable button or icon).

In alternative embodiments, the method 700 may include disabling a selected web service, at 716. By disabling the selected web service, the selected web service is unavailable to a query builder application. For example, in the event that the first web service 114 of FIG. 1 was disabled, the first selectable input 150 associated with the first web service 114 would be unavailable to the modified database query interface 144. That is, a selectable button or icon associated with the first web service 114 would not be displayed via the modified database query interface 144. As another example, in the event that the second web service 120 of FIG. 1 was disabled, the second selectable input 152 associated with the second web service 120 would be unavailable to the modified database query interface 144. That is, a selectable button or icon associated with the second web service 120 would not be displayed via the modified database query interface 144.

Thus, the method 700 of FIG. 7 may allow a user to map any number of web services to logical fields of the data abstraction model and to store the mapping information at a discovery registry (e.g., the discovery registry 112 of FIG. 1). Enabled web services may be made available to a query builder application (e.g., displayed via the modified database query interface 144 of FIG. 1). Further, by enabling the user to disable mapped web services, the number of web services that are displayed at the query builder application may be limited. Limiting the number of available web services may be beneficial for users of the query builder application by reducing the number of web services to review when building a query.

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. 

What is claimed is:
 1. A computer-implemented method of generating a database query, the method comprising: receiving a selection of a first field, the first field associated with a data abstraction model of a database; identifying a second field that has a logical relationship with the first field; examining the data abstraction model to identify a third field that is logically equivalent to the second field; determining a web service that is executable to generate output results corresponding to the third field, wherein the web service is determined based at least in part on a stored association in a discovery registry between the web service and the third field; receiving user supplied search criteria associated with the first field; initiating execution of the web service to obtain a list of output results; and generating the database query based on the user supplied search criteria associated with the first field and the list of output results obtained from the web service.
 2. The computer-implemented method of claim 1, wherein the web service examines real-time data associated with a healthcare facility.
 3. The computer-implemented method of claim 2, wherein the web service determines that a particular doctor is within the healthcare facility based on badge information.
 4. The computer-implemented method of claim 2, wherein the web service determines that a particular doctor is within the healthcare facility based on schedule information.
 5. The computer-implemented method of claim 1, wherein the web service is selected by a user from a plurality of web services, each of the plurality of web services having a corresponding stored association in the discovery registry with the third field.
 6. The computer-implemented method of claim 5, further comprising: receiving a selection of a second web service of the plurality of web services from the user; and initiating execution of the second web service to obtain a second list of output results, wherein the database query is generated further based on the second list of output results.
 7. The computer-implemented method of claim 1, further comprising executing the database query.
 8. The computer-implemented method of claim 1, wherein the second field corresponds to a date concept.
 9. The computer-implemented method of claim 1, wherein the second field corresponds to a doctor concept.
 10. The computer-implemented method of claim 9, wherein the third field corresponds to an employee identifier concept.
 11. The computer-implemented method of claim 9, wherein the third field corresponds to a doctor identifier concept.
 12. A system, comprising: a processor; a computer readable storage medium comprising instructions stored therein, that when executed by the processor, cause the processor to: receive a selection of a first field, the first field associated with a data abstraction model of a database; identify a second field that has a logical relationship with the first field; examine the data abstraction model to identify a third field that is logically equivalent to the second field; determine a web service that is executable to generate output results corresponding to the third field, wherein the web service is determined based at least in part on a stored association in a discovery registry between the web service and the third field; receive user supplied search criteria associated with the first field; initiate execution of the web service to obtain a list of output results; and generate a database query based on the user supplied search criteria associated with the first field and the list of output results obtained from the web service.
 13. The system of claim 12, wherein the computer readable storage medium further comprises instructions stored therein, that when executed by the processor, cause the processor to execute the database query.
 14. The system of claim 12, wherein the computer readable storage medium further comprises instructions stored therein, that when executed by the processor, cause the processor to initiate execution of a second web service to obtain a second list of output results, wherein the database query is generated further based on the second list of output results.
 15. The system of claim 12, wherein the web service is selected by a user from a plurality of web services, each having an association with the first field stored in the discovery registry, and wherein a user interface is provided to the user dynamically.
 16. A computer readable storage medium comprising instructions stored therein, that when executed by a processor, cause the processor to: receive a selection of a first field, the first field associated with a data abstraction model of a database; identify a second field that has a logical relationship with the first field; examine the data abstraction model to identify a third field that is logically equivalent to the second field; determine a web service that is executable to generate output results corresponding to the third field, wherein the web service is determined based at least in part on a stored association in a discovery registry between the web service and the third field; receive user supplied search criteria associated with the first field; initiate execution of the web service to obtain a first list of output results; and generate a database query based on the user supplied search criteria associated with the first field and the list of output results obtained from the web service.
 17. The computer readable storage medium of claim 16, wherein a user selects the web service from a plurality of web services, each web service of the plurality having an association with the third field stored in the discovery registry via a user interface that is provided to user dynamically.
 18. The computer readable storage medium of claim 16, wherein the computer readable storage medium further comprises instructions stored therein, that when executed by the processor, cause the processor to initiate execution of a second web service to obtain a second list of output results, wherein the database query is generated further based on the second list of output results.
 19. The computer-implemented method of claim 1, wherein the first field corresponds to a hemoglobin test concept. 